{% extends "data_list.html" %}
{% load i18n %}
{% block row_operations %}
row_operations:["op_edit","_delete","View_detail"{% block extend_row_operations %}{% endblock %}],
{% endblock %}
//{% block addjs %}
// $(function(){
// $(".div_inline").append($("#id_show_dept_data"));
// $(".div_inline").addClass("showDeptTree");
//
// $("#id_show_dept_data").show();
// $("#id_show_dept_data").find("#id_show_dept_tree").css({height:$(".dt_bdiv").height()+42});
//
// $("#id_spn_refresh").click(function(){
// $.ajax({
// type: "POST",
// url:"{{dbapp_url}}personnel/Department/choice_data_widget?depttree=True",
// dataType:"html",
// success:function(json){
// data=json
// $("#id_show_dept_tree").html("");
// $("#id_show_dept_tree").html(data);
// }
// });
//
// });
// $("#id_spn_refresh").click();
// })
////点击树形空间,左边表格刷新
// function reflash_child_dept_list(event, treeId, treeNode){
// var parent_id = treeNode.id;
// var strwhere=[];
// if (parent_id > 1)
// {
// strwhere.push("DeptID__id__exact="+parent_id);
// }
// var $grid = $("#id_datalist");
// var datalist=$grid.get(0);
// datalist.g.init_query=strwhere;
// datalist.g.load_data();
// }
//
//{% endblock %}
{% block extend_disabled_actions %}
{% if request.user|HasPerm:"personnel.browse_employee" %}
{% get_config_option "EMPLOYEE_DISABLED_ACTIONS" %}
{% else %}
$("#id_search").remove();
alert(gettext("对不起,您没有访问该页面的权限,不能浏览更多信息!"));
window.location.href="/{{ request.surl }}accounts/login/";
{% endif %}
{% endblock %}